package com.vip.admin.modules.system.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 袜子离不开秋裤
 * @since 2020-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="系统用户对象", description="系统用户对象")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "登录用户名")
    @TableField("USER_NAME")
    private String userName;
    @ApiModelProperty(value = "真实姓名")
    @TableField("REAL_NAME")
    private String realName;
    @ApiModelProperty(value = "密码")
    @TableField("PASSWORD")
    private String password;

    /**
     * 盐值
     */
    @ApiModelProperty(value = "盐值")
    @TableField("SALT")
    private String salt;

    /**
     * 照片
     */
    @ApiModelProperty(value = "图片路径")
    @TableField("PHOTO")
    private String photo;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @TableField("PHONE")
    private String phone;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期")
    @TableField("BIRHDAY")
    private Date birhday;

    @TableField("STATUS")
    private Integer status;

    /**
     * 部门名称
     */
    @TableField("DEPARTMENT_NAME")
    private String departmentName;

    /**
     * 部门id
     */
    @TableField("DEPARTMENT_ID")
    private Integer departmentId;

    /**
     * 组织机构名称
     */
    @TableField("ORG_NAME")
    private String orgName;

    /**
     * 组织机构id
     */
    @TableField("ORG_ID")
    private Integer orgId;

    @TableField("CREATOR")
    private String creator;

    @TableField("CREATE_TIME")
    private Date createTime;

    @TableField("UPDATOR")
    private String updator;

    @TableField("UPDATE_TIME")
    private Date updateTime;

    @TableField("LAST_LOGIN_TIME")
    private Date lastLoginTime;

    @TableField("LAST_LOGIN_IP")
    private String lastLoginIp;

    @TableField("IS_DEL")
    @TableLogic
    private Boolean isDel;


}
